package com.androidx.p013lv.invention;

import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.DataBinderMapper;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import com.androidx.p013lv.base.interfaces.Key;
import com.androidx.p013lv.invention.databinding.ActivityOneBindingImpl;
import com.androidx.p013lv.invention.databinding.ActivityStarBindingImpl;
import com.androidx.p013lv.invention.databinding.ActivityStarInfoBindingImpl;
import com.androidx.p013lv.invention.databinding.ActivitySvipRecommendBindingImpl;
import com.androidx.p013lv.invention.databinding.ActivityTopBindingImpl;
import com.androidx.p013lv.invention.databinding.ActivityVideoBindingImpl;
import com.androidx.p013lv.invention.databinding.FragmentHomeLabelBindingImpl;
import com.androidx.p013lv.invention.databinding.FragmentInventionTypeBindingImpl;
import com.androidx.p013lv.invention.databinding.FragmentTopBindingImpl;
import com.androidx.p013lv.invention.databinding.FragmentVideoBindingImpl;
import com.google.android.exoplayer2.text.ttml.TtmlNode;
import com.lzy.okgo.cookie.SerializableCookie;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/* renamed from: com.androidx.lv.invention.DataBinderMapperImpl */
public class DataBinderMapperImpl extends DataBinderMapper {
    private static final SparseIntArray INTERNAL_LAYOUT_ID_LOOKUP;
    private static final int LAYOUT_ACTIVITYONE = 1;
    private static final int LAYOUT_ACTIVITYSTAR = 2;
    private static final int LAYOUT_ACTIVITYSTARINFO = 3;
    private static final int LAYOUT_ACTIVITYSVIPRECOMMEND = 4;
    private static final int LAYOUT_ACTIVITYTOP = 5;
    private static final int LAYOUT_ACTIVITYVIDEO = 6;
    private static final int LAYOUT_FRAGMENTHOMELABEL = 7;
    private static final int LAYOUT_FRAGMENTINVENTIONTYPE = 8;
    private static final int LAYOUT_FRAGMENTTOP = 9;
    private static final int LAYOUT_FRAGMENTVIDEO = 10;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(10);
        INTERNAL_LAYOUT_ID_LOOKUP = sparseIntArray;
        sparseIntArray.put(C1069R.C1074layout.activity_one, 1);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.activity_star, 2);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.activity_star_info, 3);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.activity_svip_recommend, 4);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.activity_top, 5);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.activity_video, 6);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.fragment_home_label, 7);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.fragment_invention_type, 8);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.fragment_top, 9);
        INTERNAL_LAYOUT_ID_LOOKUP.put(C1069R.C1074layout.fragment_video, 10);
    }

    @Override // androidx.databinding.DataBinderMapper
    public ViewDataBinding getDataBinder(DataBindingComponent dataBindingComponent, View view, int i) {
        int i2 = INTERNAL_LAYOUT_ID_LOOKUP.get(i);
        if (i2 <= 0) {
            return null;
        }
        Object tag = view.getTag();
        if (tag != null) {
            switch (i2) {
                case 1:
                    if ("layout/activity_one_0".equals(tag)) {
                        return new ActivityOneBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for activity_one is invalid. Received: " + tag);
                case 2:
                    if ("layout/activity_star_0".equals(tag)) {
                        return new ActivityStarBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for activity_star is invalid. Received: " + tag);
                case 3:
                    if ("layout/activity_star_info_0".equals(tag)) {
                        return new ActivityStarInfoBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for activity_star_info is invalid. Received: " + tag);
                case 4:
                    if ("layout/activity_svip_recommend_0".equals(tag)) {
                        return new ActivitySvipRecommendBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for activity_svip_recommend is invalid. Received: " + tag);
                case 5:
                    if ("layout/activity_top_0".equals(tag)) {
                        return new ActivityTopBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for activity_top is invalid. Received: " + tag);
                case 6:
                    if ("layout/activity_video_0".equals(tag)) {
                        return new ActivityVideoBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for activity_video is invalid. Received: " + tag);
                case 7:
                    if ("layout/fragment_home_label_0".equals(tag)) {
                        return new FragmentHomeLabelBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for fragment_home_label is invalid. Received: " + tag);
                case 8:
                    if ("layout/fragment_invention_type_0".equals(tag)) {
                        return new FragmentInventionTypeBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for fragment_invention_type is invalid. Received: " + tag);
                case 9:
                    if ("layout/fragment_top_0".equals(tag)) {
                        return new FragmentTopBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for fragment_top is invalid. Received: " + tag);
                case 10:
                    if ("layout/fragment_video_0".equals(tag)) {
                        return new FragmentVideoBindingImpl(dataBindingComponent, view);
                    }
                    throw new IllegalArgumentException("The tag for fragment_video is invalid. Received: " + tag);
                default:
                    return null;
            }
        } else {
            throw new RuntimeException("view must have a tag");
        }
    }

    @Override // androidx.databinding.DataBinderMapper
    public ViewDataBinding getDataBinder(DataBindingComponent dataBindingComponent, View[] viewArr, int i) {
        if (viewArr == null || viewArr.length == 0 || INTERNAL_LAYOUT_ID_LOOKUP.get(i) <= 0 || viewArr[0].getTag() != null) {
            return null;
        }
        throw new RuntimeException("view must have a tag");
    }

    @Override // androidx.databinding.DataBinderMapper
    public int getLayoutId(String str) {
        Integer num;
        if (str == null || (num = InnerLayoutIdLookup.sKeys.get(str)) == null) {
            return 0;
        }
        return num.intValue();
    }

    @Override // androidx.databinding.DataBinderMapper
    public String convertBrIdToString(int i) {
        return InnerBrLookup.sKeys.get(i);
    }

    @Override // androidx.databinding.DataBinderMapper
    public List<DataBinderMapper> collectDependencies() {
        ArrayList arrayList = new ArrayList(3);
        arrayList.add(new androidx.databinding.library.baseAdapters.DataBinderMapperImpl());
        arrayList.add(new com.androidx.p013lv.base.DataBinderMapperImpl());
        arrayList.add(new com.chad.library.DataBinderMapperImpl());
        return arrayList;
    }

    /* renamed from: com.androidx.lv.invention.DataBinderMapperImpl$InnerBrLookup */
    private static class InnerBrLookup {
        static final SparseArray<String> sKeys;

        private InnerBrLookup() {
        }

        static {
            SparseArray<String> sparseArray = new SparseArray<>(96);
            sKeys = sparseArray;
            sparseArray.put(0, "_all");
            sKeys.put(1, "actressName");
            sKeys.put(2, "annId");
            sKeys.put(3, "attentionHe");
            sKeys.put(4, "bala");
            sKeys.put(5, "bgImgs");
            sKeys.put(6, "birthday");
            sKeys.put(7, "bu");
            sKeys.put(8, "buy");
            sKeys.put(9, "buyType");
            sKeys.put(10, "canWatch");
            sKeys.put(11, "checkSum");
            sKeys.put(12, "cityCode");
            sKeys.put(13, "cityName");
            sKeys.put(14, "clTicket");
            sKeys.put(15, "click");
            sKeys.put(16, "content");
            sKeys.put(17, "contentId");
            sKeys.put(18, "contentList");
            sKeys.put(19, "contentName");
            sKeys.put(20, "coverImg");
            sKeys.put(21, "createdAt");
            sKeys.put(22, "creator");
            sKeys.put(23, "dynamicNum");
            sKeys.put(24, "editState");
            sKeys.put(25, "endTime");
            sKeys.put(26, "expiredVip");
            sKeys.put(27, "fakeLikes");
            sKeys.put(28, "fakeScoreNum");
            sKeys.put(29, "fakeShareNum");
            sKeys.put(30, "fakeWatchNum");
            sKeys.put(31, "favoritesNum");
            sKeys.put(32, "feedbackImgs");
            sKeys.put(33, "forbiddenWord");
            sKeys.put(34, "freeVip");
            sKeys.put(35, "freeWatches");
            sKeys.put(36, "gender");
            sKeys.put(37, "gold");
            sKeys.put(38, "headImg");
            sKeys.put(39, "height");
            sKeys.put(40, TtmlNode.ATTR_ID);
            sKeys.put(41, "imgDomain");
            sKeys.put(42, "inviteCode");
            sKeys.put(43, "inviteUserNum");
            sKeys.put(44, "isSDKAd");
            sKeys.put(45, "leaseDays");
            sKeys.put(46, "leaseExpAt");
            sKeys.put(47, "leasePrice");
            sKeys.put(48, "level");
            sKeys.put(49, "like");
            sKeys.put(50, "likeBrush");
            sKeys.put(51, "logo");
            sKeys.put(52, "meetCard");
            sKeys.put(53, "meetLock");
            sKeys.put(54, "meetPrice");
            sKeys.put(55, "mobile");
            sKeys.put(56, SerializableCookie.NAME);
            sKeys.put(57, "nickName");
            sKeys.put(58, "official");
            sKeys.put(59, "personSign");
            sKeys.put(60, "phone");
            sKeys.put(61, "playTime");
            sKeys.put(62, "previewUrl");
            sKeys.put(63, "price");
            sKeys.put(64, "provinceCode");
            sKeys.put(65, "provinceName");
            sKeys.put(66, "purVideosNum");
            sKeys.put(67, "qq");
            sKeys.put(68, "reason");
            sKeys.put(69, "reasonType");
            sKeys.put(70, "recAt");
            sKeys.put(71, "recScore");
            sKeys.put(72, "recharge");
            sKeys.put(73, "score");
            sKeys.put(74, "scored");
            sKeys.put(75, "size");
            sKeys.put(76, "sortNum");
            sKeys.put(77, "startTime");
            sKeys.put(78, "status");
            sKeys.put(79, "studioIds");
            sKeys.put(80, "svip");
            sKeys.put(81, Key.TITLE);
            sKeys.put(82, Key.TOKEN);
            sKeys.put(83, "ua");
            sKeys.put(84, "updatedAt");
            sKeys.put(85, Key.USER_ID);
            sKeys.put(86, "userType");
            sKeys.put(87, "vIP");
            sKeys.put(88, Key.VIDEO_ID);
            sKeys.put(89, "videoType");
            sKeys.put(90, "videoUrl");
            sKeys.put(91, "watched");
            sKeys.put(92, "wechat");
            sKeys.put(93, "welfareNum");
            sKeys.put(94, "width");
            sKeys.put(95, "worksNum");
        }
    }

    /* renamed from: com.androidx.lv.invention.DataBinderMapperImpl$InnerLayoutIdLookup */
    private static class InnerLayoutIdLookup {
        static final HashMap<String, Integer> sKeys;

        private InnerLayoutIdLookup() {
        }

        static {
            HashMap<String, Integer> hashMap = new HashMap<>(10);
            sKeys = hashMap;
            hashMap.put("layout/activity_one_0", Integer.valueOf(C1069R.C1074layout.activity_one));
            sKeys.put("layout/activity_star_0", Integer.valueOf(C1069R.C1074layout.activity_star));
            sKeys.put("layout/activity_star_info_0", Integer.valueOf(C1069R.C1074layout.activity_star_info));
            sKeys.put("layout/activity_svip_recommend_0", Integer.valueOf(C1069R.C1074layout.activity_svip_recommend));
            sKeys.put("layout/activity_top_0", Integer.valueOf(C1069R.C1074layout.activity_top));
            sKeys.put("layout/activity_video_0", Integer.valueOf(C1069R.C1074layout.activity_video));
            sKeys.put("layout/fragment_home_label_0", Integer.valueOf(C1069R.C1074layout.fragment_home_label));
            sKeys.put("layout/fragment_invention_type_0", Integer.valueOf(C1069R.C1074layout.fragment_invention_type));
            sKeys.put("layout/fragment_top_0", Integer.valueOf(C1069R.C1074layout.fragment_top));
            sKeys.put("layout/fragment_video_0", Integer.valueOf(C1069R.C1074layout.fragment_video));
        }
    }
}
